package reflect.entity;

import java.io.Serializable;

public class Student extends BaseClass implements Serializable {
    private Integer Id;
    private String name;
    private String sex;
    private String brith;
    private String address;

    @Override
    public String toString() {
        return "Student{" +
                "Id=" + Id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", brith='" + brith + '\'' +
                ", address='" + address + '\'' +
                '}';
    }

    public Student(String name) {
        this.name = name;
    }

    public Student() {
    }

    public Student(Integer id, String name, String sex, String brith, String address) {
        Id = id;
        this.name = name;
        this.sex = sex;
        this.brith = brith;
        this.address = address;
    }

    public void sayHello(){
        System.out.println(this);
    }

    public Integer getId() {
        return Id;
    }

    public void setId(Integer id) {
        Id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBrith() {
        return brith;
    }

    public void setBrith(String brith) {
        this.brith = brith;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    private static final void showName(){
        System.out.println("嘿嘿我是李湘大傻");
    }
}
